package com.remiss.seckilldemo.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.remiss.seckilldemo.pojo.User;
import com.remiss.seckilldemo.vo.LoginVO;
import com.remiss.seckilldemo.vo.ResposeBean;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author remiss
 * @since 2021-03-20
 */
public interface IUserService extends IService<User> {

    ResposeBean doLogin(LoginVO loginVO, HttpServletRequest request, HttpServletResponse response);

    /**
     * 通过cookie获取用户
     * @param userTicket
     * @return
     */
    User getUserByCookie(String userTicket, HttpServletRequest request, HttpServletResponse response);
    ResposeBean updatePassword(String userTicket,String password ,HttpServletRequest request,HttpServletResponse response);
}
